package vip.zslaa.mongodb.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author ：zslaa
 * @date ：Created in 9/7/2019 11:29 PM
 * @description：
 * @version: $
 */
@Data
@Document(collection = "user")
public class User {
    @Id
    private String id;
    @Field("username")
    private String username;
    @Field("password")
    private String password;
    @Field("height")
    private Integer height;
    @Field("birthday")
    private Date birthday;
}
